/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopHotSearch.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_hot_search")
public class ShopHotSearch {
	

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String searchSid;
	@Length(max=300)
	private java.lang.String keyWord;
	
	private java.lang.String index;
	@Length(max=50)
	private java.lang.String enterUserid;
	
	private java.util.Date enterDate;
	//columns END


	public ShopHotSearch(){
	}

	public ShopHotSearch(
		java.lang.String searchSid
	){
		this.searchSid = searchSid;
	}

	

	public void setSearchSid(java.lang.String value) {
		this.searchSid = value;
	}
	
	@Id @GeneratedValue(generator="custom-id")
	@GenericGenerator(name="custom-id", strategy = "increment")
	@Column(name = "search_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getSearchSid() {
		return this.searchSid;
	}
	
	@Column(name = "key_word", unique = false, nullable = true, insertable = true, updatable = true, length = 300)
	public java.lang.String getKeyWord() {
		return this.keyWord;
	}
	
	public void setKeyWord(java.lang.String value) {
		this.keyWord = value;
	}
	
	@Column(name = "index", unique = false, nullable = true, insertable = true, updatable = true, length = 10)
	public java.lang.String getIndex() {
		return this.index;
	}
	
	public void setIndex(java.lang.String value) {
		this.index = value;
	}
	
	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}
	
	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}
	
	
	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}
	
	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}
}

